#!/bin/bash
#Test the USB Button GPIO467
./leds all off
./leds -t 1000 1 &
pid_leds=$!

./gpio_button -t 10 SW_USB=467
result=$?
#echo $result
kill -9 "$pid_leds"
./leds 1 off
[ $result -ne 0 ] && { echo "Switch USB FAIL"; exit 1; }
exit 0
